//
//  TopicGroupModel.swift
//  HoneyBee
//
//  Created by Smith_Yang on 2018/6/13.
//  Copyright © 2018 point. All rights reserved.
//

import UIKit

class TopicGroupModel: NSObject {
    
    @objc var groupName : String = ""
    @objc var remark : String = ""
    @objc var groupLeader : String = ""
    @objc var groupLeaderId : Int = 0
    @objc var topicNum : Int = 0
    @objc var distance : String = ""
    @objc var address : String = ""
    @objc var longitude : String = ""
    @objc var latitude : String = ""
    @objc var id : Int = 0
    @objc var pageNum : Int = 0
    @objc var pageSize : Int = 0
    @objc var readNum : Int = 0
    @objc var delete : Bool = false //是否已经删除
    @objc var admin : Bool = false //是否为管理员
    @objc var add : Bool = false //是否已经加入
    @objc var userId : Int = 0 //创始人
    
    
    
    @objc var groupId : Int = 0
    @objc var updateTime : String = ""
    @objc var createTime : String = ""
    @objc var user : Dictionary<String, Any>?

    func json() -> [String : Any] {
        return [
            "createUserId": userId,
            "groupId": groupId,
        "userId": userId] as [String : Any]
    }
    
}
